﻿@model IEnumerable<sgp.Models.Dizimo>

@{
    ViewBag.Title = "Index";
}

<legend>
<table border="0" width="100%" cellpadding="5">
    <tr>
        <td>
            <b>Dizimos</b>
        </td>
    </tr>
     <tr>
        <td>
        <a class="btn btn-primary btn-primary pull-left" href="/Dizimo/Create" data-original-title="">Adicionar</a>
        <td>
    
    </tr>
</table>
</legend>

<table class="table table-bordered table-striped" border="0" width="10%" cellpadding="5">

<tr>
    <th>
        Mês Referente
    </th>
    <th>
        Data
    </th>
    <th>
        Valor
    </th>
    <th>
        Descrição
    </th>
    <th>
        Ações
    </th>
</tr>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.MesReferente)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Data)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Valor)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Descricao)
        </td>
        <td>
            <a class="btn" href="/Dizimo/Edit/@item.Id" data-original-title="Editar"> <i class="icon-edit"></i></a>
            <a class="btn" href="/Dizimo/Details/@item.Id" data-original-title="Detalhar"> <i class="icon-file"></i></a>
            <a class="btn btn-danger" href="/Dizimo/Delete/@item.Id" data-original-title="Deletar"><i class="icon-remove icon-white"></i></a>
        </td>
    </tr>
}
</table>
